package com.chuanyang.driverh.utils.camera;

import android.app.Activity;
import android.view.View;


/**
 * @author Kyle
 * @date 2015/6/21 19:21
 */
public class TakePictureListener implements View.OnClickListener {
    private Activity context;
    public TakePictureListener(Activity context){
        this.context = context;
    }
    @Override
    public void onClick(View v)
    {

        context.startActivityForResult(CameraUtils
                        .takePicture(context),
                CameraUtils.REQUEST_CODE_TAKE_PICTURE);
    }

}